package atest.reopen.session.interceptor.sharding;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description
 * @Author zenghua
 * @Email hua.zeng@dmall.com
 * @Date 2020/3/2 22:45
 * @Version 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Sharding {
    /**
     * 数据库表
     * @return
     */
    String tableName();

    /**
     * 分表处理器
     * @return
     */
    Class<? extends ShardingHandler> handlerClass();
}
